// test_complex.c
//#include <stdio.h>

int add(int x, int y) { return x + y; }
int sub(int x, int y) { return x - y; }
int mul(int x, int y) { return x * y; }
int divi(int x, int y) { return x / y; }

int test(int a, int b, int c) {
    int r1 = add(a, b);
    int r2 = sub(b, c);
    int r3 = mul(r1, r2);
    int r4 = add(mul(a, b), sub(c, a));
    int r5 = sub(add(a, c), mul(b, c));
    int r6 = mul(add(a, b), add(b, c));
    int r7 = divi(mul(a, add(b, c)), sub(c, b));
    int r8 = add(add(a, b), add(b, c));
    return r1 + r2 + r3 + r4 + r5 + r6 + r7 + r8;
}

int main() {
    int a = 8;int b = 5; int c = 3;
    int result = test(a, b, c);
    return result;
} 